<template>
    <!-- 收到的赞 -->
    <div class="received-praise">
        <div class="received-praise-head">
            <span>收到的赞</span>
        </div>
        <div class="received-praise-body">
            <el-card  v-for="item in receivedPraiseList" :key="item.id">
                <el-row>
                    <el-col  :span="3">
                        <div class="avatar">
                            <el-avatar style="width:80px;height:80px;border:none;float:left;" shape="square" :size="50" :src="item.avatarUrl"></el-avatar>
                        </div>
                    </el-col>
                    <el-col  :span="18" >
                        <div class="user">
                            <a class="user-nick">{{item.userNick}}&nbsp;<span>点赞了我的视频</span></a><br>
                            <div class="hide">1128</div>
                            <div class="time">{{item.time}}</div>
                        </div> 
                    </el-col>
                    <el-col :span="3">
                        <div class="comment">
                            <el-avatar style="width:80px;height:80px;border:none;float:left;" shape="square" :size="50" :src="item.video"></el-avatar>
                        </div> 
                    </el-col>
                </el-row>
            </el-card>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            receivedPraiseList: [
                {
                    id: '1',
                    avatarUrl:require('@/assets/navImgs/avatar.jpg'),  //用户头像地址
                    userNick:'易烊千玺',                               //用户昵称
                    time: '2021年11月13日 22:10',                     //回复时间
                    video: require('@/assets/navImgs/avatar.jpg'),
                },
                {
                    id: '1',
                    avatarUrl:require('@/assets/navImgs/avatar.jpg'),     //用户头像地址
                    userNick:'白敬亭',                                    //用户昵称
                    time: '2021年11月13日 22:10',                         //回复时间
                    video: require('@/assets/navImgs/avatar.jpg'),
                },
            ]
        } 
    }
}
</script>

<style >
.received-praise-head {
    margin-top: 10px;
    margin-left:205px;
    width: 800px;
    height:30px;
    background-color:white;
    border-radius:5px;
}
.received-praise-body {
    margin-top: 10px;
    margin-left: 205px;
    width: 800px;
    background-color: white;
    border-radius:5px;
}
.received-praise-body .user a{
     width: 80px;
    height: 100px;
    color:black;
    font-weight:600;
    font-size: 14px;
    margin-bottom: 10px;
}
.received-praise-body .user span {
    font-weight: 400;
}
.received-praise-body .user .hide {
    height: 50px;
     width: 80px;
     visibility: hidden;
}
.received-praise-body .user .time {
    font-size: 12px;
}
.received-praise-body .user .span {
    font-weight: 400;
}

</style>
